package com.dhecp.project.storage.mapper;

import com.dhecp.core.genericDao.GenericDao;
import com.dhecp.project.storage.domain.DeliveryRequestDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * DAO
 * @author Jason
 */
public interface DeliveryRequestDetailMapper extends GenericDao<DeliveryRequestDetail, String>  {

	/**
     * 查询实体
     * @author Jason
	 */
	List<DeliveryRequestDetail> select(Map<String, Object> params);

	/**
	 * 查询
	 * @author Jason
	 */
	List<DeliveryRequestDetail> queryFirstByPBid(@Param("pBid") String pBid);
	/**
	 * 通过guid修改实体
	 * @author Jason
	 */
	int updateByGuid(DeliveryRequestDetail entity);

	int insertDeliveryRequestDetail(DeliveryRequestDetail entity);

	int deleteByPBid(@Param("pBid") String pBid);
	
	/**
	 * 查询总箱数
	 * @param pBid
	 * @return
	 */
	Integer sumNumAll(@Param("pBid")String pBid);
}
